import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import { localStorage } from 'mp-storage'

import login from './modules/login.js'

Vue.use(Vuex)

const store = new Vuex.Store({
	modules:{
		login
	},
	getters:{},
	plugins: [createPersistedState({storage: localStorage})]
})

export default store
